package demo1;

public class lambda表达式创建线程 extends Thread{
    public static void main(String[] args) {
        new Thread(()->{
            System.out.println("lambda方式创建线程");
        }).start();
    }
}

